package cn.kivensoft.xlsx.reader;

public class Row extends BaseCells {
	public Row(int index) {
		super(index);
	}

	public Row(int index, boolean hidden) {
		super(index, hidden);
	}

	public void addCell(Cell cell) {
		int max = cells.size();
		int index = cell.getColumn().getIndex();
		while (index >= max++)
			cells.add(null);
		cell.setRow(this);
		cells.set(index, cell);
	}
}
